/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
}

.actions {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* 下拉框样式 */
.select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.lang-select {
    min-width: 100px;
}

/* 问答列表样式 */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qa-content {
    margin-bottom: 20px;
}

.question {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

.answer {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.qa-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chart-container {
    width: 100%;
    margin: 10px 0;
}

.buttons {
    display: flex;
    gap: 10px;
}

/* 评分卡片样式 */
.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-card:hover {
    transform: translateY(-2px);
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-label {
    font-size: 12px;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .qa-item {
        padding: 15px;
    }
    
    .buttons {
        flex-wrap: wrap;
    }
}

/* 导出模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.score-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.9em;
    color: #666;
}

.filter-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.date-filters {
    display: flex;
    gap: 15px;
}

.date-filters input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 深色主题适配 */
[data-theme="dark"] .modal-content {
    background-color: #2d2d2d;
}

[data-theme="dark"] .modal-header h2 {
    color: #fff;
}

[data-theme="dark"] .close-btn {
    color: #999;
}

[data-theme="dark"] .close-btn:hover {
    color: #fff;
}

[data-theme="dark"] .form-group label {
    color: #fff;
}

[data-theme="dark"] .filter-item label {
    color: #999;
}

[data-theme="dark"] .filter-item input,
[data-theme="dark"] .date-filters input {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #fff;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #4d4d4d;
}

/* 评分统计样式 */
.score-stats {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.score-stats h2 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: var(--text-color);
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trend-chart,
.distribution-chart {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    height: 300px;
}

.trend-chart h3,
.distribution-chart h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .trend-chart,
    .distribution-chart {
        height: 250px;
    }
} 